<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script>
        // let str = '宝马宝马';
        // let str1 = '奥迪奥迪';
        // let str2 = '宝马奥迪';
        // let str3 = '奥迪宝马';
        // let reg = /^(宝马|奥迪){2}$/;
        // console.log(reg.test(str));
        // console.log(reg.test(str1));
        // console.log(reg.test(str2));
        // console.log(reg.test(str3));

        let reg = /\d{18}|\d{17}[a-z|A-Z]{1}/;
        let reg1 = /(\+86)?(133{1}\d{8})|(135{1}\d{8})|(138{1}\d{8})/;
        let reg2 = /(\d|a-z|A-Z|_{6,16})@(qq|163|sina)\.(com|cn)/;

        let ls = /^\d{17}(\d|x)$/;
        let ls1 = /^(\+86)?(133|135|138)\d{8}$/;
        let ls2 = /^\w(6,16)@(qq|163|sina)\.(com|cn)/;
    </script>
</body>

</html>